/*package com.Test;

import com.Util.MybatisUtils;
import com.po.BorrowCard;
import com.po.Orders;
import com.po.Person;
import com.po.User;
import org.apache.ibatis.session.SqlSession;
import org.junit.jupiter.api.Test;

public class MybatisAssociatedTest {

    @Test
    public void findPersonByIdTest(){
        SqlSession session = MybatisUtils.getSession();
        Person person = session.selectOne("com.mapper.PersonMapper.selectPersonById",2);
        System.out.println(person);
        session.close();
    }

    @Test
    public void findPersonByIdTest2(){
        SqlSession session = MybatisUtils.getSession();
        Person person = session.selectOne("com.mapper.PersonMapper.selectPersonById2",2);
        System.out.println(person);
        session.close();
    }

    @Test
    public void findUserTest(){
        SqlSession session = MybatisUtils.getSession();
        User user = session.selectOne("com.mapper.UserMapper.selectUserWithOrders",2);
        System.out.println(user);
        session.close();
    }

    @Test
    public void findOrdersTest(){
        SqlSession session = MybatisUtils.getSession();
        Orders orders = session.selectOne("com.mapper.OrdersMapper.selectOrdersWithProduct",1);
        System.out.println(orders);
        session.close();
    }

    @Test
    public void findOrdersTest2(){
        SqlSession session = MybatisUtils.getSession();
        Orders orders = session.selectOne("com.mapper.OrdersMapper.selectOrdersWithProduct2",1);
        System.out.println(orders);
        session.close();
    }
    @Test
    public void selectBorrowCardAndInfoById1(){
        SqlSession session = MybatisUtils.getSession();
        BorrowCard borrowCard = session.selectOne("com.mapper.BorrowCardMapper.selectBorrowCardInfoById",666);
        System.out.println(borrowCard);
        session.close();
    }

    @Test
    public void findBorrowCardAndInfoByStudyId2(){
        SqlSession session = MybatisUtils.getSession();
        BorrowCard borrowCard = session.selectOne("com.mapper.BorrowCardMapper.selectBorrowCardInfoById2",666);
        System.out.println(borrowCard);
        session.close();
    }
}*/
